package com.basic.modules.ykf.dao;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.basic.common.utils.ParamsModel;
import com.basic.modules.sys.entity.SysUserEntity;
import com.basic.modules.ykf.entity.YkfCustomerSubAccountEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.basic.modules.ykf.model.SumSubAccountModel;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 店铺子账号
 * 
 * @author maoheng
 * @email 15738859597@163.com
 * @date 2024-05-15 15:36:23
 */
@Mapper
public interface YkfCustomerSubAccountDao extends BaseMapper<YkfCustomerSubAccountEntity> {

    IPage<YkfCustomerSubAccountEntity> getUserShopPage(IPage<YkfCustomerSubAccountEntity> page, @Param("condition") YkfCustomerSubAccountEntity condition);

    List<YkfCustomerSubAccountEntity> getUserShopList(@Param("userId") Long userId);

    IPage<SumSubAccountModel> sumSubAccount(IPage<SumSubAccountModel> queryPage, @Param("condition") SumSubAccountModel condition, @Param("sort") ParamsModel.SortParams sort);
}
